package com.limao.push;

import com.limao.CacheManager.user_rmbCacheManager;


public class InviteCutThread  extends Thread {
	
	private int userid; //本次注册成功用户的id
	private int type; //0:注册　1购买　2登陆签到
	private float totalrmb;
	private int orderid;

	
	@Override
	public void run() {
		try {
			startInviteCut(userid,type,totalrmb,orderid);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
	//type 是指 1:是首次绑定手机号　还是 0:未绑定手机号 ,不是首次绑定手机号不会触发计算事件
	public InviteCutThread(int userid,int type) {
		super();
		this.userid = userid;
		this.type = type;
		this.totalrmb=0;
		this.orderid=0;
	}
	
	public InviteCutThread(int userid,int type,float totalrmb,int orderid) {
		super();
		this.userid = userid;
		this.type = type;
		this.totalrmb=totalrmb;
		this.orderid=orderid;
	}

	private void startInviteCut(int userid,int type,float totalrmb,int orderid)
	{	
		//邀请分成功能取消
		user_rmbCacheManager.getInstance().InvitePreCut(userid,type,totalrmb,orderid);

		
	}
	

}
